<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:f="http://java.sun.com/jsf/core" 
      xmlns:h="http://java.sun.com/jsf/html" 
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:ez="http://java.sun.com/jsf/composite/ezcomp"> 
    <!--
    Author Lu Xiaodi
    -->
    <h:head> 
        <title>IOTR</title> 
        <style type="text/css"> 
            .gritter-notice-wrapper { 
                left:200px; 
                top:50px; 
            } 
        </style> 

    </h:head> 
    <h:body>                 
        <ez:OutletManagerIOTRHeaderMenu/>

        <ez:OutletManagerIOTRTitle/>

        <p:layout style="table-layout:auto; height:600px ">
            <p:layoutUnit position="left" header="Navigation" width="300">
                <ez:OutletManagerTTALeftMenu/>
            </p:layoutUnit>
            <p:layoutUnit position="center" header="Settings">

                <h:form>

                    <h:panelGrid columns="3">
                        <h:outputText value="     ACSR(Average customer spending per reservation):"/>
                        <p:inputText value="#{custAnalysisMB.avgExp_CustValue}" />
                        <p:commandButton value="Enter" update="valueTable" />
                        <h:outputText/>
                    </h:panelGrid>
                    <p:dataTable id="valueTable" value="#{custAnalysisMB.sortedLocalCustValue}" var="cust"
                                 emptyMessage="there are no local customers exist for this outlet..."
                                 rows="30" paginator="true">
                        <p:column headerText="Rank">
                            #{cust.rank}
                        </p:column>
                        <p:column headerText="CustomerID">
                            #{cust.customerId}
                        </p:column>
                        <p:column headerText="CustomerEmail">
                            #{cust.customerEmail}
                        </p:column>
                        <p:column headerText="LoyaltyIdx">
                            #{cust.custValue}
                        </p:column>
                    </p:dataTable>

                </h:form>
            </p:layoutUnit>
        </p:layout>

    </h:body> 
</html>